<!DOCTYPE html>
<html class="no-js" lang="zh-CN">
<head>
    <meta charset="UTF-8"/>
    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge">-->
    <title>装修报价预算_家装报价单_装修要多少钱_金蚂蚁装修价格表</title>
    <meta name="description" content="金蚂蚁装修报价，提供{$data}正规装修装潢设计公司，新房、二手房各平米、各房厅家庭室内全、半包施工装修报价清单及水电材料明细。"/>
    <meta name="keywords" content="装修报价,装修价格"/>
    <meta name="format-detection" content="telephone=no">
    <meta name="renderer" content="webkit">
    <link rel="shortcut icon" href="__PUBLIC__/images/logo.ico">

    <!--<meta name="renderer" content="webkit">-->

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/header.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/footer.css">
    <script src="__PUBLIC__/js/jquery-1.2.6.min.js"></script>
    <script src="__PUBLIC__/js/header.js"></script>
    <script>

        (function(){
            var bp = document.createElement('script');
            var curProtocol = window.location.protocol.split(':')[0];
            if (curProtocol === 'https') {
                bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
            }
            else {
                bp.src = 'http://push.zhanzhang.baidu.com/push.js';
            }
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(bp, s);
        })();
    </script>
</head>
<body>
<div class="headk">
    <div class="head">
        <div class="floatleft">您好<a href="__MODULE__/Usercenter/index"><b style="color:red;">{$_SESSION["username"]}</b></a>，欢迎来到金蚂蚁装修网！<span>{$data}<a href="{:U('Home/City/index')}">【切换】</a></span></div>
        <div class="floatright">
        <?php
if($_SESSION["cid"]){?>
   <a href="__MODULE__/Usercenter/index"><b style="color:red;">进入个人中心</b></a> | <a href="__MODULE__/Baojia-layout">注销</a>
<?php }else{ ?>
<!--<a href="{:U('Home/Login/index')}">您还未登陆,点击登陆</a>-->
<!--<?php }?>-->
            <!--|<a href="{:U('Home/Register/ownreg')}">个人注册</a>|<a href="{:U('Home/Register/comreg')}">装修公司注册</a>-->
            <!--|<a href="{:U('Zxwd/index')}">装修问答</a>|-->
            <span>服务热线:400-0606-129</span>
        </div>
    </div>
</div>
<div class="topbigdiv" bigheight="132" smallheight="103">
    <div class="top">
        <div class="logo">
            <a href="http://www.zxjmy.com">
                <img
                        src="__PUBLIC__/images/logo.png"
                        height="90">
            </a>
        </div>
        <include file="Public:read"/>
    </div>
</div>
<div class="topbigdivbg"></div>

<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/zxbj.css">
<div class="global_wrap zxbj_details" id="gloWrap">
    <div class="con" style="padding-bottom: 22px;">
        <div class="con_bj">
            <!-- calculate -->
            <div class="con_bj_cal col_l" id="tender-video-form">
                <h3 class="calputer_tit">装修计算器<span>今天已有 <em class="num_man">1776</em> 位业主获取了装修预算</span></h3>
                <form id="new_base_info">
                    <div class="mod_form bj_form">
                        <div class="form_line">
                            <label class="label"><em class="label_start">*</em>所在城市：</label>
                            <div class="element">
                                <div class="zcityGroup" city-range="{'level_start':1,'level_end':3}" city-ini=""></div>
                                <div class="form_error"><em class="ico_error"></em>请选择地区</div>
                            </div>
                        </div>
                        <div class="form_line">
                            <label  class="label"><em class="label_start">*</em>房屋面积：</label>
                            <div class="element">
                                <div class="text_wrap">
                                    <input type="text" class="text area_text" name="area" id="area" placeholder="输入您的房屋面积" onchange="xiugai()">
                                    <!--<em class="text_lbl">输入您的房屋面积</em>-->
                                    <em class="unit" style="color: black;">m²</em>
                                    <div class="form_error"><em class="ico_error"></em>请输入建筑面积</div>
                                </div>
                                <p class="text_area">* 输入面积小于30㎡时，报价结果按30㎡计算</p>
                            </div>
                        </div>

                        <div class="form_line">
                            <label  class="label"><em class="label_start">*</em>房屋户型：</label>
                            <div class="element">
                                <div class="clear">
                                    <select name="shi" id="shi" class="select select_s select_s_s col_l">
                                        <option value="1室">1室</option>
                                        <option value="2室">2室</option>
                                        <option value="3室">3室</option>
                                        <option value="4室">4室</option>
                                        <option value="5室">5室</option>
                                        <option value="6室">6室</option>
                                    </select>
                                    <select name="ting" id="ting" class="select select_s select_s_s col_l">
                                        <option value="1厅">1厅</option>
                                        <option value="2厅">2厅</option>
                                        <option value="3厅">3厅</option>
                                        <option value="4厅">4厅</option>
                                        <option value="5厅">5厅</option>
                                        <option value="6厅">6厅</option>
                                    </select>
                                    <select name="chu" id="chu" class="select select_s select_s_s col_l">
                                        <option value="1厨">1厨</option>
                                        <option value="2厨">2厨</option>
                                        <option value="3厨">3厨</option>
                                    </select>
                                    <select name="wei" id="wei" class="select select_s col_l">
                                        <option value="1卫">1卫</option>
                                        <option value="2卫">2卫</option>
                                        <option value="3卫">3卫</option>
                                        <option value="4卫">4卫</option>
                                        <option value="5卫">5卫</option>
                                        <option value="6卫">6卫</option>
                                    </select>
                                    <select name="yangtai" id="yangtai" class="select select_s col_l">
                                        <option value="1阳台">1阳台</option>
                                        <option value="2阳台">2阳台</option>
                                        <option value="3阳台">3阳台</option>
                                        <option value="4阳台">4阳台</option>
                                        <option value="5阳台">5阳台</option>
                                        <option value="6阳台">6阳台</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="form_line" id="phoneInput">
                            <label  class="label"><em class="label_start">*</em>手机号码：</label>
                            <div class="element">

                                <div class="text_wrap">
                                    <input type="text" class="text" name="phone" id="mobile" placeholder="报价结果将发送到您的手机" onchange="xiugai()">
                                    <div class="form_error"><em class="ico_error"></em>请输入正确的手机号</div>
                                </div>

                            </div>
                        </div>
                        <div class="form_line bj_btn">
                            <i class="ico-line-btn"></i>
                            <a class="calc-btn" id="calc_btn" href="javascript:;"><em>开始计算</em></a>

                            <span class="circle-animate"></span>
                        </div>
                    </div>
                </form>
            </div>



            <!-- results -->
            <div class="con_bj_res col_r">
                <!--<h3>计算结果</h3>-->
                <div class="bj_res_con">
                    <div class="bj_res_t clear"><span class="bj_res_t_w">您家的装修预算</span><b id="bprice">103329</b><span class="bj_res_t_y">元</span></div>
                    <ul class="bj_res_ul">
                        <li class=" hotad-cl"><span>材料费：</span><strong id="materialPay"><em>33928</em>元</strong></li>
                        <li class=" hotad-rg"><span>人工费：</span><strong id="artificialPay"><em>65194</em>元</strong></li>
                        <li class=" hotad-sj"><span>设计费：</span><strong id="designPay"><em>1773</em>元</strong></li>
                        <li class=" hotad-zj"><span>质检费：</span><strong id="qualityPay"><em>2434</em>元</strong></li>
                    </ul>





                </div>

                <!--结果态微信带量展示-->

            </div>
            <!-- check info -->

        </div>
    </div>

</div>



<include file="Public:foot"/>

<script src="__PUBLIC__/js/baojia.js"></script>
<script src="__PUBLIC__/js/zcity.js"></script>
<script>
    zcityrun('.zcityGroup');
    $('#calc_btn').click(function () {
                var huxing=$("#shi").val()+$("#ting").val()+$("#chu").val()+$("#wei").val()+$("#yangtai").val();
                var a = $('.zcityGroup').find('.currentValue')
                var city=a.eq(0).val()+a.eq(1).val()+a.eq(2).val()
                var mobile=$("#mobile").val();
                var area=$("#area").val();
                if(city==''){
                    alert('请选择您的所在城市！')
                    return false;
                }else if(!mobile.match(/^1[0-9]{10}$/)){
                    alert('请输入正确的手机号码！')
                    return false;
                }else if(area == ''){
                    alert('请输入您的房屋面积！')
                    return false;
                }
                    console.log(huxing,city,mobile,area)
                    $.ajax({
                       type: "POST",
                       dataType: 'json',
                       url: '{:U("Home/Baojia/add")}',
                       data: {
                         huxing:huxing,
                         city:city,
                         mobile:mobile,
                         area:area
                       },
                       success: function (data) {
                             alert(data.msg);
                           if (data.status == 1) {
                               window.location.reload();
                           }
                       },
                       error: function () {
                       
                       }

                   })

                })

</script>
</body>
</html>
